import App from './App'
import uView from "uview-ui";
Vue.use(uView);
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'

// 全局注册请求
import http from './utils/https.js'
Vue.prototype.request = http
import store from './store/index.js'
Vue.prototype.$store = store
// 图片域名
Vue.prototype.imgUrl = 'https://qiniu-cdn.maeiyun.com/'
// #ifdef APP
import barHightTop from './utils/header.js'
Vue.prototype.headerHeight = barHightTop
// #endif
import Util from './utils/util.js'
Vue.prototype.$util = Util

const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif